<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box{
            width: 800px ;
            height: 300px;
            background-color: red;
            display: flex;
            /* flex-direction: column; */
            flex-wrap: wrap;
        }
        .box p{
            width: 300px;
            height: 50px;
            margin: 10px;
            padding: 20px;
        }
        .box p:nth-child(1){
            background-color: yellow;
            float: right;
            /* 弹性盒模型 */
            
           
        }
        .box p:nth-child(2){
            background-color: pink;
            float: right;
        }
        .box p:nth-child(3){
            background-color: blue;
            float: right;
        }
        .box p:nth-child(4){
            background-color: #ccc;
            float: right;
        }
        .box p:nth-child(5){
            background-color: rgb(255, 0, 208);
            float: right;
        }
        .box p:nth-child(6){
            background-color: rgb(0, 255, 76);
            float: right;
        }
    </style>
</head>
<body>
    <div class="box">
        <p>
            内填
        </p>
        <p>2</p>
        <p>3</p>
        <p>4</p>
        <p>5</p>
        <p>6</p>
    </div>
    <script>

        // 盒子浮动对块元素全部有效
        // p标签带有默认样式：间距上下的一个间距
        // 弹性盒写属性，一般是操作父元素来改变子元素
    </script>
</body>
</html>